from django.urls import re_path

from lhc_order import views

urlpatterns = [
    # 添加订单&获取订单列表
    re_path(r'^api/v1.0/orders$', views.AddOrder.as_view()),
    # 接单和拒单
    re_path(r'^api/v1.0/orders/(?P<order_id>\d+)/status', views.SetOrder.as_view()),
    # 评价订单
    re_path(r'^api/v1.0/orders/(?P<order_id>\d+)/comment', views.EvaluationOrder.as_view()),
]